import Vue from 'vue'
import VueRouter from 'vue-router'
import LogAnalyzer from '../views/LogAnalyzer.vue'
import TemplateManager from '../views/TemplateManager.vue'
import PerformanceMonitor from '../views/PerformanceMonitor.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/analyze',
    name: 'LogAnalyzer',
    component: LogAnalyzer
  },
  {
    path: '/template',
    name: 'TemplateManager',
    component: TemplateManager
  },
  {
    path: '/performance',
    name: 'PerformanceMonitor',
    component: PerformanceMonitor
  },
  {
    path: '/',
    redirect: '/analyze'
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router 